﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using System.ComponentModel.DataAnnotations;
using Wedo.Domain.Models;
using System.ComponentModel;


namespace Wedo.Recognition.Domain.Models
{
    /// <summary>
    /// 每月生成一次的账单转账数据
    /// </summary>
    [System.ComponentModel.DisplayName("转账单")]
    public partial class TransferVoucher : Entity
    {
        //[DisplayName( "选中")]
        ////[DataColumn(1, 50, Checkbox = true)]
        //public string Other1 { set; get; }

        /// <summary>
        ///  账单编号
        /// </summary>
        [DisplayName( "账单编号")]
        //[DataColumn(8, 120)]
        public string Assiginment { set; get; }

        /// <summary>
        /// 银行名称
        /// </summary>
        [DisplayName("BankName")]// ResourceType = typeof(Wedo.Recognition.Resources.BankData))]
        //[DataColumn(10, 120)]
        public string BankCode { set; get; }

        /// <summary>
        /// 付款人/信用证号/票据号
        /// </summary>
        [DisplayName("Payer")]// ResourceType = typeof(Wedo.Recognition.Resources.BankData))]
        //[DataColumn(30, 100)]
        public string Payer { set; get; }

        /// <summary>
        /// 银行实收
        /// </summary>
        [DisplayName("BankPaidIn")]// ResourceType = typeof(Wedo.Recognition.Resources.BankData))]
        //[DataColumn(40, 100)]
        public decimal? BankPaidIn { set; get; }

        /// <summary>
        /// 账单导入SAP后返回的DocumentNo
        /// </summary>
        [DisplayName( "DocumentNo")]
        //[DataColumn(50, 100)]
        public string DocumentNo { set; get; }

        /// <summary>
        /// 原账单对应的客户编号
        /// </summary>
        [DisplayName( "原客户编号")]
        //[DataColumn(60, 100)]
        public string OriginalCustomerCode { set; get; }

        /// <summary>
        /// 新的客户编号
        /// </summary>
        [DisplayName( "新客户编号")]
        //[DataColumn(70, 100)]
        public string NewCustomerCode { set; get; }

        /// <summary>
        /// 转账凭证是否已经处理
        /// </summary>
        [DisplayName( "已经处理")]
        //[DataColumn(80, 100)]
        public bool HasConfirm { set; get; }

        /// <summary>
        /// 新DocumentNO
        /// </summary>
        [DisplayName( "新DocumentNO")]
        public string NewDocumentNo { get; set; }

        /// <summary>
        /// 账单及金额
        /// 存放认款SONO和金额，格式为：SONO(Amount)/SONO(Amount)
        /// </summary>
        [DisplayName( "订单及金额")]
        public string SONO { get; set; }
    }
}
